﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YogaStudio.Data.Domain
{
   public  class Section
    {

        [Key]
        public int Id { get; set; }

        [ForeignKey("Schedule")]
        [Required]
        public int ScheduleId { get; set; }
        public virtual Schedule Schedule { get; set; }

        [ForeignKey("Course")]
        [Required]
        public int CourseId { get; set; }
        public virtual Course Course { get; set; }

        [ForeignKey("Faculty")]
        [Required]
        public int FacultyId { get; set; }
        public virtual Faculty Faculty { get; set; }


        [ForeignKey("Room")]
        [Required]
        public int RoomId { get; set; }
        public virtual Room Room { get; set; }

        public double Price { set; get; }
        public int Capacity { set; get; }
        public virtual ICollection<Customer> Customers { get; set; }
    }
}
